//
//  JXUserAccount.swift
//  weibo
//
//  Created by admin on 16/5/24.
//  Copyright © 2016年 admin. All rights reserved.
//

import UIKit

class JXUserAccount: NSObject {

	var access_token: String?

	// token生命周期
	var expires_in: NSTimeInterval = 0 {

		didSet {
            
            expires_date = NSDate(timeIntervalSinceNow: expires_in)

		}

	}

	// 计算token的过期时间
	var expires_date: NSDate?

	var uid: String?

	// 用户名
	var name: String?

	// 用户头像
	var avatar_large: String?

	// 字典转模型
	init(dict: [String: AnyObject]) {
		super.init()
		setValuesForKeysWithDictionary(dict)
	}
	// 过滤空值
	override func setValue(value: AnyObject?, forUndefinedKey key: String) {

	}
}
